home *** CD-ROM | disk | FTP | other *** search
/ 3D Images / 3D Images.iso / programs / amiga / rayshade / rayfiles / rsdefs / macros / stdmacros.rh < prev   
Encoding:
Text File  |  1995-01-12  |  1.4 KB  |  49 lines

  1. /************************************************************************
  2.  *
  3.  *      stdmacros.rh
  4.  *
  5.  *      This is an #include file for the Rayshade Standard Header 
  6.  *    Files.  It defines the macros for the package.
  7.  *
  8.  *    Please do not edit this file, or any of the other files in
  9.  *    this package!  Make additions to these in your own separate
  10.  *    file.  If you think you have something that should be added
  11.  *    permanently, please send it to Larry Coffin and/or David
  12.  *    DeBry (email addresses listed below).  If we include it in
  13.  *    the next release, we'll put your name in the contributor's
  14.  *    list.
  15.  *
  16.  *      Contributors (in alphabetical order):
  17.  *          Larry Coffin <lcoffin@clciris.chem.umr.edu>
  18.  *          David DeBry <ddebry@dsd.es.com>
  19.  */
  20.  
  21. #ifndef RSHF_MACROS
  22. #define RSHF_MACROS
  23.  
  24. #define RSMdull(a,b,c,d)            \
  25.     ambient ((a)*(d)) ((b)*(d)) ((c)*(d))    \
  26.     diffuse (a) (b) (c)
  27.  
  28. #define RSMshiny(a,b,c,d,e)        \
  29.     ambient (a*d) (b*d) (c*d)    \
  30.     diffuse (a) (b) (c)        \
  31.     specular 1 1 1            \
  32.     specpow e
  33.  
  34. #define RSMscale(x) scale (x) (x) (x)
  35.  
  36. #define RSMsimplefbmtex() fbm 0 2 .1 2 6 -.2
  37. #define RSMsimpleskytex() sky 1 0.3 2 4 0.6 0.5
  38.  
  39. #define RSMbluescreen() background 0.125 0.125 1.0
  40. #define RSMdaysky() background 0.539 0.746 1.000
  41.  
  42. #define RSMchesspiece(row,col,sc)                \
  43.     translate                        \
  44.         ((((col)-4)/8 - 1/16)*(sc))                \
  45.         (((4-(row))/8 + 1/16)*(sc))                \
  46.         0
  47.  
  48. #endif /* ifndef RSHF_MACROS */
  49.